package hust.hiepdv.javaproject.networking;
import hust.hiepdv.javaproject.constant.Constant;

import java.io.*;
import java.net.*;
import java.nio.ByteBuffer;

class UDPServer extends Thread implements Constant{
	
	private DatagramSocket clientSocket = null;
	byte[] sendData = new byte[DATAGRAM_SIZE];
	byte[] receiveData = new byte[DATAGRAM_SIZE];
	InetAddress serverIPAddress = null;
	Client[] clients = new Client[PLAYER_NUM];
	
	public UDPServer() throws Exception{
		clientSocket = new DatagramSocket(SERVER_UDP_PORT);
		InetAddress IPAddress = InetAddress.getByName("localhost");
	}
	
	public void run(){		

	}
	
	public int getPort(){
		return this.clientSocket.getPort();
	}
	
	class UDPServerSend extends Thread{
		public void run() {
		}
	}
	
	class UDPServerReceive extends Thread{
		public void run() {
		}
	}
}
